/**
 * Project trac. Copyright May 28, 2012.
 */
package org.mediahouse.trac.util;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author Tin
 * @version %I%, %G%
 * 
 */
public final class JSONHelperTestHarness {

    /**
     * @param args
     */
    @SuppressWarnings("serial")
    public static void main(final String[] args) {
        debug.trace(new JSONResponseDataContainer(new HashMap<String, Object>() {
            {
                put("string_value", "String \\\"Value{123}[a]e^1");
                put("raw_array", new Object[] { 1, "Cat in a Hat", true,
                        new Object(), null, new Number[] { 1, 2, 3, 4, 5 } });
                put("list", new ArrayList<Object>() {
                    {
                        this.add(new Object[] { "Introduction", "Active",
                                "Tin", "Faisal", "25-May-2012", "TODO" });
                        this.add(new ArrayList<Object>() {
                            {
                                this.add("Background");
                                this.add("Active");
                                this.add("Michael");
                                this.add("Shane");
                                this.add("25-May-2012");
                            }
                        });
                    }
                });
                put("null", null);
                put("object", new HashMap<String, Object>() {
                    {
                        final Object empty = null;
                        put("inner", new HashMap<Object, Object>() {
                            {
                                put(12357, "last");
                                put("full", 1023);
                            }
                        });
                        put("outer", String.valueOf(empty));
                        put("inner_array", new Object[] { "Cat", "in", "a",
                                "Hat" });
                    }
                });
            }
        }).serialize());
    }
}
